package com.jk.dto;

import com.jk.util.JsonUtil;

public class JsonResult {

    public JsonResult() {

    }

    public JsonResult(int status, String message) {
        this.status = status;
        this.message = message;
    }

    public JsonResult(int status, Object object) {
        this.status = status;
        this.message = JsonUtil.toString(object);
    }

    public JsonResult(int status, String message, String content) {
        this.status = status;
        this.message = message;
        this.content = content;
    }

    private int status;
    private String message;
    private String content;

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public void setMessageObject(Object messageObject) {
        this.message = JsonUtil.toString(messageObject);
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }
}
